function [ B,A ] = CreateFBFilter(fs)
%CREATEFBFILTER Summary of this function goes here
%   Detailed explanation goes here
fs=fs/2;
% %M2 method
% %h1
% fls1(1)=[5.5]; 
% fls2(1)=[3.5];
% fhs1(1)=[14]; 
% fhs2(1)=[18];
% 
% %h2
% fls1(2)=[13]; 
% fls2(2)=[9];
% fhs1(2)=[26]; 
% fhs2(2)=[32];
% 
% %h3
% fls1(3)=[20.5]; 
% fls2(3)=[14.5];
% fhs1(3)=[38]; 
% fhs2(3)=[44];
% 
% %h4
% fls1(4)=[28]; 
% fls2(4)=[22];
% fhs1(4)=[50]; 
% fhs2(4)=[56];
% 
% %h5
% fls1(5)=[35.5]; 
% fls2(5)=[29.5];
% fhs1(5)=[62]; 
% fhs2(5)=[68];
% 
% %h6
% fls1(6)=[43]; 
% fls2(6)=[37];
% fhs1(6)=[74]; 
% fhs2(6)=[80];
% 
% %h7
% fls1(7)=[50.5]; 
% fls2(7)=[44.5];
% fhs1(7)=[77]; 
% fhs2(7)=[87];
% 
% %h8
% fls1(8)=[58]; 
% fls2(8)=[52];
% fhs1(8)=[77]; 
% fhs2(8)=[87];
% 
% %h9
% fls1(9)=[65.5]; 
% fls2(9)=[59.5];
% fhs1(9)=[77]; 
% fhs2(9)=[87];
% 
% %h10
% fls1(10)=[73]; 
% fls2(10)=[67];
% fhs1(10)=[77]; 
% fhs2(10)=[87];



%M3 method
%h1
fls1(1)=[5.5]; 
fls2(1)=[3.5];
fhs1(1)=[77]; 
fhs2(1)=[87];

%h2
fls1(2)=[13]; 
fls2(2)=[9];
fhs1(2)=[77]; 
fhs2(2)=[87];

%h3
fls1(3)=[20.5]; 
fls2(3)=[14.5];
fhs1(3)=[77]; 
fhs2(3)=[87];

%h4
fls1(4)=[28]; 
fls2(4)=[22];
fhs1(4)=[77]; 
fhs2(4)=[87];

%h5
fls1(5)=[35.5]; 
fls2(5)=[29.5];
fhs1(5)=[77]; 
fhs2(5)=[87];

%h6
fls1(6)=[43]; 
fls2(6)=[37];
fhs1(6)=[77]; 
fhs2(6)=[87];

%h7
fls1(7)=[50.5]; 
fls2(7)=[44.5];
fhs1(7)=[77]; 
fhs2(7)=[87];

%h8
fls1(8)=[58]; 
fls2(8)=[52];
fhs1(8)=[77]; 
fhs2(8)=[87];

%h9
fls1(9)=[65.5]; 
fls2(9)=[59.5];
fhs1(9)=[77]; 
fhs2(9)=[87];

% %h10
% fls1(10)=[78]; 
% fls2(10)=[72];
% fhs1(10)=[90]; 
% fhs2(10)=[100];

B = cell(1,length(fls1));
A = cell(1,length(fls1));

for nFB = 1:length(fls1)
Wp=[fls1(nFB)/fs fhs1(nFB)/fs];%3 7
Ws=[fls2(nFB)/fs fhs2(nFB)/fs];%1 1

[N,Wn]=cheb1ord(Wp,Ws,3,40);
[B{nFB},A{nFB}] = cheby1(N,0.5,Wn);
end


end

